package com.template;

import com.template.impl.ConcreteClassA;
import com.template.impl.ConcreteClassB;

/**
 * 模板模式
 * 
 * @author Administrator
 *
 */
public class Test {

	public static void main(String[] args) {
		AbstractClass c = new ConcreteClassA();
		c.templateMethod();

		AbstractClass c2 = new ConcreteClassB();
		c2.templateMethod();
	}

}
